package cn._2dland.leech.clients;

import org.apache.commons.httpclient.NameValuePair;

import cn._2dland.leech.LeechClient;

public class SonicLeechClient extends LeechClient {

	@Override
	protected String getParseURL(String url) {
		return "http://sonicleech.com/index.php";
	}

	@Override
	protected String getParseReferer(String url) {
		return "http://sonicleech.com/";
	}

	@Override
	protected NameValuePair[] getParseParams(String url) {
		NameValuePair[] params = {
				new NameValuePair("link", url),
				new NameValuePair("ap_description", ""),
				new NameValuePair("ap_quantity", ""),
				new NameValuePair("ap_returnurl", ""),
				new NameValuePair("ap_itemname", ""),
				new NameValuePair("ap_merchant", ""),
				new NameValuePair("ap_purchasetype", ""),
				new NameValuePair("ap_cancelurl", ""),
				new NameValuePair("referer", ""),
				new NameValuePair("iuser", ""),
				new NameValuePair("ipass", ""),
				new NameValuePair("comment", ""),
				new NameValuePair("yt_fmt", "highest"),
				new NameValuePair("tor_user", ""),
				new NameValuePair("tor_pass", ""),
				new NameValuePair("mu_cookie", ""),
				new NameValuePair("cookie", ""),
				new NameValuePair("email", ""),
				new NameValuePair("method", "tc"),
				new NameValuePair("partSize", "10"),
				new NameValuePair("proxy", ""),
				new NameValuePair("proxyuser", ""),
				new NameValuePair("proxypass", ""),
				new NameValuePair("premium_acc", "on"),
				new NameValuePair("premium_user", ""),
				new NameValuePair("premium_pass", ""),
				new NameValuePair("path", "/home/soniclee/public_html/files")
		};
		return params;
	}

	@Override
	protected String getTransloadURL(String url) {
		return "http://sonicleech.com/index.php";
	}

	@Override
	protected String parseDownloadURL(String url, String body) {
		return body;
	}

}
